// 任务调度API
import {postAxios,getAxios} from '@/lib/http';
  export const taskDefectTypeApi = {
    // 查询缺陷类型列表
    getTaskDefectTypeByPage: (data) => {
      return postAxios('/defectType/page/query', data);
    },
    // 添加缺陷类型
    addTaskDefectType: (data) => {
      return postAxios('/defectType/add', data);
    },
    //更新缺陷类型
    updateTaskDefectType: (data) => {
        return postAxios('/defectType/update', data);
      },
    //删除缺陷类型
    deleteTaskDefectType: (data) => {
      return postAxios('/defectType/delete',data);
    },
    getTaskDefectType: () => {
      return getAxios('/defectType/query');
    },
  };
